def count_lines_in_file(file_path):
    with open(file_path,"r",encoding='utf-8') as file:
        content=file.read()
        sum=0
        for line in content:
            if '\n' in line:
                sum+=1
        return sum+1
file_path="example5.txt"
print(count_lines_in_file(file_path))